﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Channels;
using System.ServiceModel.Dispatcher;
using System.Text;
using LinFu.IoC.Configuration;

namespace CoreEx.ServiceModel.Tests
{
    [Implements(typeof(IErrorHandler),ServiceName = "SampleErrorHandler")]
    public class SampleErrorHandler : IErrorHandler
    {        
        public void ProvideFault(Exception error, MessageVersion version, ref Message fault)
        {
            //Do nothing here.    
        }
        
        public bool HandleError(Exception error)
        {
            Console.WriteLine(error);
            return false;
        }
    }
}
